package com.zhl.arraylist;

public class Food {
    private String name;
    private double price;

    public String getDesc() {
        return desc;
    }

    public void setDesc(String dsac) {
        this.desc = dsac;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private String desc;    //描述
    //无参构造器
    public Food() {
    }
    //有参构造器
    public Food(String name, double price, String desc) {
        this.name = name;
        this.price = price;
        this.desc = desc;
    }

}
